package com.xc.dao;

import com.xc.pojo.SiteAdmin;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SiteAdminMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(SiteAdmin record);

    int insertSelective(SiteAdmin record);

    SiteAdmin selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(SiteAdmin record);

    int updateByPrimaryKey(SiteAdmin record);



    SiteAdmin login(@Param("adminPhone") String adminPhone
            , @Param("adminPwd") String adminPwd);

    List listByAdmin(@Param("adminName") String adminName
            , @Param("adminPhone") String adminPhone
            , @Param("superAdmin") String superAdmin
    );



    SiteAdmin findAdminByName(String name);
    SiteAdmin findAdminByPhone(String phone);


}